package com.ww.learn.oop

data class Task(val id: Int, val name: String, val completed: Boolean, val assigned: Boolean)

fun main() {
    val task1 = Task(1, "Create Project", false, true)
    println(task1)
    println("Name: ${task1.name}")

    val taskCompleted = task1.copy(completed = true, assigned = false)
    println(taskCompleted)
}